import java.util.Scanner;

public class Text2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(n);
        int[] arr=new int [3*n];
        for (int i = 0; i < 3*n; i++) {
            arr[i]=sc.nextInt();
        }
    }
}
